from django.db import models

# Create your models here.
class Idc(models.Model):
    name  = models.CharField(max_length=32,  verbose_name='机房名称')
    address = models.CharField(max_length=256, verbose_name='机房地址')
    phone = models.CharField(max_length=15, verbose_name='联系人手机')
    email = models.EmailField(default="null", verbose_name='邮件地址')
    letter = models.CharField(max_length=5, verbose_name='IDC 简称')

    def __str__(self):
        return self.name

    class Meta:
        db_table = 'resouce_idc'